package com.zer0.tga.tile;

import com.zer0.tga.art.ArtArchive;
import com.zer0.tga.art.Bitmap;
import com.zer0.tga.art.Screen;
import com.zer0.tga.entity.Entity;
import com.zer0.tga.level.Level;

public class WallTile extends Tile {
	
	public int side;
	
	
	
	   public void init(Level level, int x, int y) {
	        super.init(level, x, y);
	//        this.side = 0;
	    }
	   
	   public void init(Level level, int x, int y, int side) {
	        super.init(level, x, y);
	 //       this.side = side;
	    }
	   
	   public void setSide(int side)
	   {
		   this.side = side;
	   }
	   
	
	public boolean canPass(Entity e) {
        return false;
    }

	public void render(Screen screen) {
       Bitmap bmp = ArtArchive.grassTile[0][side];
       screen.draw(bmp, c.x * Tile.WIDTH, c.y * Tile.HEIGHT); /*RandNum.getRandNum(0, 1)*/
    }

	
}
